package org.wmine.data;

import java.io.IOException;
import java.io.StringBufferInputStream;

import javax.xml.parsers.ParserConfigurationException;

import org.xml.sax.SAXException;

public class Test {
	
	public static void main(String[] args ) throws ParserConfigurationException, SAXException, IOException {
		DataSet dataSet = new DataSet();
		dataSet.setDataReader(new XMLDataReader(new StringBufferInputStream("E:\\semester 3\\rajeev\\rajeev\\8Aug\\WMine\\xmldoc02.xml")));
		TableResultSet resultSet = dataSet.getTableResultSet();
	 
		while(resultSet.hasNext()) {
			try {
				System.out.println("From here :"+ resultSet.getString(1));
			} catch (InvalidCursorPositionException e) {
				e.printStackTrace();
			}
		}
		
		System.out.print("attrcnt:"+dataSet.getAttributeCount());
	}

}
